package com.geovis.emergency.spd.entity.app.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.util.List;

/**
 * 事件上报信息DTO对象
 */
@Setter
@Getter
@Accessors(chain = true)
public class EventReportDto {

    @ApiModelProperty("标题")
    @NotEmpty(message = "上报时间不能为空")
    private String title;

    @ApiModelProperty("事件类型")
    @NotEmpty(message = "事件类型不能为空")
    private String disasterType;

    @ApiModelProperty("事件等级")
    @NotEmpty(message = "事件等级不能为空")
    private String disasterLevel;

    @ApiModelProperty("批次类型(1-首报，2-续报，3-终报)")
    @NotEmpty(message = "批次类型不能为空")
    private String batchType;

    @ApiModelProperty("街道")
    private String street;

    @ApiModelProperty("详情")
    @NotEmpty(message = "详情不能为空")
    private String description;

    @ApiModelProperty("上报时间")
    @NotNull(message = "上报时间不能为空")
    private LocalDate reportDate;

    @ApiModelProperty("经度")
    @NotEmpty(message = "经度不能为空")
    private String lon;

    @ApiModelProperty("纬度")
    @NotEmpty(message = "纬度不能为空")
    private String lat;

    @ApiModelProperty("文件集合")
    private List<String> fileIds;

    @ApiModelProperty("续报事件id")
    private String eventId;
}
